package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.Page;
import com.vincce.sport.entity.Player;
import com.vincce.sport.entity.PlayerDate;

@MyBatisRepository
public interface PlayerMapper {
	/**
	 * 分页查询球员
	 * @param page
	 * @return
	 */
	public List<Player> queryPlayerByPage(Page<Player> page);
	/**
	 * 查询球员总数
	 * @param map
	 * @return
	 */
	public Long queryPalyerByCount(Map<String, Object> map);
	/**
	 * 添加球员
	 * @param player
	 * @return
	 */
	public Long insertPalyer(Player player);
	/**
	 * 更新球员
	 * @param player
	 * @return
	 */
	public Long updatePalyer(Player player);
	/**
	 * 通过id删除球员
	 * @param id
	 * @return
	 */
	public Integer deleteById(Integer id);
	/**
	 * 查询全部球员
	 * @return
	 */
	public List<Player> queryPalyerByAll();
	/**
	 * 通过id查询球员
	 * @param id
	 * @return
	 */
	public Player queryPalyerDate(Integer id);
	/**
	 * 通过球队id查询球员列表
	 * @param map
	 * @return
	 */
	public List<Player> queryPlayerByTeamId(Map<String, Object> map);
	
	/**
	 * 比赛球员
	 * @param param
	 * @return
	 */
	public List<PlayerDate> queryPlayerByContest(Map<String, Object> param);
	/**
	 * 通过条件查询球员
	 * @param map
	 * @return
	 */
	public List<Player> queryPlayerByStatus(Map<String, Object> map);
	
	

}
